package com.chag.biz.userbase.dao.customized;

import com.chag.biz.userbase.dto.UserDTO;
import com.chag.biz.userbase.dto.UserSearchDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: CHAG
 * Date: 2016/6/5
 * Time: 10:21
 * User自定义Mapper接口.
 */
public interface UserCustomizedMapper {
    /**
     * 根据searchDTO查询用户列表
     * @param searchDTO     查询条件
     * @return
     */
    List<UserDTO> selectUserListBySearchDTO(@Param("searchDTO") UserSearchDTO searchDTO);

    /**
     * 根据searchDTO查询用户数量
     * @param searchDTO     查询条件
     * @return
     */
    Integer selectUserCountBySearchDTO(@Param("searchDTO") UserSearchDTO searchDTO);
}